home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 3006 / 3006.xpi / chrome / dwhelper.jar / content / menu.xml < prev    next >
Extensible Markup Language  |  2010-01-15  |  2KB  |  113 lines

  1. <?xml version="1.0"?>
  2. <!-- *****************************************************************************
  3.  *            Copyright (c) 2006-2009 Michel Gutierrez. All Rights Reserved.
  4.  ****************************************************************************** -->
  5. <!DOCTYPE bindings SYSTEM "chrome://dwhelper/locale/dwhelper.dtd" >
  6.  
  7. <bindings xmlns="http://www.mozilla.org/xbl"
  8.     xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  9.     xmlns:html="http://www.w3.org/1999/xhtml"
  10.     xmlns:xbl="http://www.mozilla.org/xbl">
  11.  
  12.     <binding id="Menu" extends="chrome://global/content/bindings/popup.xml#popup">
  13.  
  14.         <implementation>
  15.  
  16.             <constructor>
  17.                 <![CDATA[
  18. this.core=Components.classes["@downloadhelper.net/core;1"].
  19.             getService(Components.interfaces.dhICore);
  20.                 ]]>
  21.             </constructor>
  22.             <destructor>
  23.                 <![CDATA[
  24. this.core.unregisterMenu(this);
  25.                 ]]>
  26.             </destructor>
  27.  
  28.         </implementation>
  29.         
  30.         <handlers>
  31.             <handler event="DOMNodeRemoved">
  32.                 <![CDATA[
  33. if(event.target==this) {
  34.     this.core.unregisterMenu(this);
  35. }
  36.                 ]]>
  37.             </handler>
  38.         </handlers>
  39.         
  40.     </binding>
  41.  
  42.     <binding id="DownloadMenu" extends="#Menu">
  43.  
  44.         <implementation>
  45.  
  46.             <constructor>
  47.                 <![CDATA[
  48. this.core.registerMenu(this,Components.interfaces.dhICore.MENU_TYPE_DOWNLOAD);
  49.                 ]]>
  50.             </constructor>
  51.  
  52.         </implementation>
  53.         
  54.     </binding>
  55.  
  56.     <binding id="SystemMenu" extends="#Menu">
  57.  
  58.         <implementation>
  59.  
  60.             <constructor>
  61.                 <![CDATA[
  62. this.core.registerMenu(this,Components.interfaces.dhICore.MENU_TYPE_SYSTEM);
  63.                 ]]>
  64.             </constructor>
  65.  
  66.         </implementation>
  67.         
  68.     </binding>
  69.  
  70.     <binding id="ContextMenuitem" extends="chrome://global/content/bindings/menu.xml#menuitem">
  71.  
  72.         <implementation>
  73.  
  74.             <constructor>
  75.                 <![CDATA[
  76. this.core=Components.classes["@downloadhelper.net/core;1"].
  77.             getService(Components.interfaces.dhICore);
  78. this.core.registerContextItem(this);
  79.                 ]]>
  80.             </constructor>
  81.             <destructor>
  82.                 <![CDATA[
  83. this.core.unregisterContextItem(this);
  84.                 ]]>
  85.             </destructor>
  86.  
  87.         </implementation>
  88.      
  89.     </binding>
  90.  
  91.     <binding id="ContextMenuIconic" extends="chrome://global/content/bindings/menu.xml#menu-iconic">
  92.  
  93.         <implementation>
  94.  
  95.             <constructor>
  96.                 <![CDATA[
  97. this.core=Components.classes["@downloadhelper.net/core;1"].
  98.             getService(Components.interfaces.dhICore);
  99. this.core.registerContextItem(this);
  100.                 ]]>
  101.             </constructor>
  102.             <destructor>
  103.                 <![CDATA[
  104. this.core.unregisterContextItem(this);
  105.                 ]]>
  106.             </destructor>
  107.  
  108.         </implementation>
  109.      
  110.     </binding>
  111.  
  112. </bindings>
  113.